Please address any questions/comments to Randy Manchester
via Compuserve ID: 70775,1424 or on the Amiga Sanctuary at
(603)524-0136.
ImageMaker is a utility that will convert any standard brush file created with Deluxe Paint into an Image structure in C source code. The resulting source code can then be used in your own programs for rendering gadgets or bobs.
To create a brush file with deluxe paint, you would load deluxe paint, then draw the image you want. After you've finished creating your image, you should pickup the image using the brush icon, then save the image as a brush. Once this is done, you can use ImageMaker to generate the source code.
ImageMaker uses the following syntax:
ImageMaker [-c] infile outfile structure
where
[-c] is an optional flag that tells the program to generate
color register values. The register values will be placed at the end of the file as a comment (enclosed in /* .. */).
infile is the brush file you want to convert.
outfile is the name of the file where the source code will be stored.
structure is the name that will be used for this structure.
will convert the cloud brush in the dpaint/brush/fantasy1 directory to C source code, and will save it in DF0: under the name Cloud.img. The structure will have the name CloudImage.
Values for PlanePick and PlaneOnOff will be preset to 31 and 0 respectively, so you may need to edit these values. The number of bit planes (depth) of the image are determined by deluxe paint and default to 5 deep in lo-res mode. To create an image with only 2 bit planes you would use the following syntax when running deluxe paint:
1> dpaint lo 2<cr>. Where lo is the the screen resolution and 2 is the number of bitplanes. See the deluxe paint documentation for more info on parameters.
ImageMaker will load a brush file saved in any resolution, so you can create an image in medium res mode and use it in lo-res or high-res. Comments are automatically inserted in the Image struct to make editing your image structure easy.